package com.lhj.demo.simple.domain.dto;

/**
 * @author hj.luo
 * @Date 2023-07-19 11:04
 * @descripition
 * @version: 1.0
 */
public class QueryDTO {
    private Integer id;
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static QueryDTO buildDTO(Integer id, String name){
        QueryDTO queryDTO = new QueryDTO();
        queryDTO.setId(id);
        queryDTO.setName(name);
        return queryDTO;
    }

    @Override
    public String toString() {
        return "QueryDTO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
